package cn.mall.org.mapper;

import cn.mall.org.domain.Manager;
import cn.mall.base.mapper.BaseMapper;
import cn.mall.org.domain.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author myf
 * @since 2023-12-02
 */
public interface ManagerMapper extends BaseMapper<Manager> {
    Manager loadByUsername(String name);

    void updateByExamine(@Param("id") Long id, @Param("accountable") int accountable);


    List<Long> getRoleByManagerId(Long managerId);

    void removeRole(Long managerId);

    void saveRole(@Param("managerId")Long managerId, @Param("roleId") List<Long> roleId);

}
